﻿@{
    ViewData["Title"] = "AddStorage";
    Layout = "~/Views/Shared/Template.cshtml";
}

<h4>新增入库单</h4>

<form class="layui-form" action="/CreateWarehouse">
    <div class="layui-form-item" style=" margin-bottom: 10px;">
        <div class="layui-inline">
            <label class="layui-form-label">入库单号</label>
            <div class="layui-input-inline">
                <input type="text" name="storageNo" id="storageNo" lay-verify="required" autocomplete="off" placeholder="可不填写，自动生成" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">入库单类型</label>
            <div class="layui-input-inline">
                <select id="storageType" name="storageType" lay-filter="aihao" lay-verify="required">
                    <option value="">请选择入库类别</option>
                    <option value="采购收货入库">采购收货入库</option>
                    <option value="销售退货入库">销售退货入库</option>
                    <option value="生产产品入库">生产产品入库</option>
                    <option value="领用退还入库">领用退还入库</option>
                    <option value="借货入库">借货入库</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">关联订单号</label>
            <div class="layui-input-inline">
                <input type="text" id="associateNumber" name="associateNumber" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item" style="margin-bottom: 10px;">
        <div class="layui-inline">
            <label class="layui-form-label">供应商编号</label>
            <div class="layui-input-inline">
                <input type="text" name="vendorNo" id="vendorNo" placeholder="请输入关键词搜索或者双击选择" autocomplete="off" lay-verify="required" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">供应商名称</label>
            <div class="layui-input-inline">
                <input type="text" name="vendorName" id="vendorName" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">供应商联系人</label>
            <div class="layui-input-inline">
                <input type="text" name="vendorContact" id="vendorContact" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item" style=" margin-bottom: 10px;">
        <div class="layui-inline">
            <label class="layui-form-label">供应商联系方式</label>
            <div class="layui-input-inline">
                <input type="text" name="vendorPhone" id="vendorPhone" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">制单人</label>
            <div class="layui-input-inline">
                <input type="text" name="singleMaker" id="singleMaker" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">制单时间</label>
            <div class="layui-input-inline">
                <input type="date" name="singleTime" id="singleTime" autocomplete="off" class="layui-input" lay-verify="required">
            </div>
        </div>
    </div>
    <div class="layui-form-item layui-form-text" style="margin-left:130px;margin-top:30px">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea name="storageRemarks" id="storageRemarks" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <div style="float:left;margin-top:40px;margin-bottom:40px">
        <h4>产品信息</h4>
    </div>
    <div style="float:right;margin-top:40px;margin-bottom:40px">
        <button type="button" class="layui-btn layui-bg-gray" lay-on="test-page-custom">
            <i class="layui-icon layui-icon-add-1"></i>新增产品
        </button>
    </div>
    <table class="layui-hide" id="allocationProduct"></table>
    <script type="text/html" id="TPL-select-demo">
        <select name="binLocationName" id="binLocationName" lay-filter="select-demo" lay-append-to="body">
          @* <option value="">select 方式</option>
                <option value="1">hh</option> *@
        </select>
    </script>
    <div class="layui-form-item" style="text-align:center;margin-top:50px">
        <button class="layui-btn" lay-submit lay-filter="demo2">提交</button>
        <button type="reset" class="layui-btn layui-btn-primary" onclick="location.href='/Warehouse/StorageShow'">取消</button>
    </div>
</form>

<script src="../js/warehouse/storage/addstorage.js"></script>

